package com.pro.framework.mq.rabbit;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Set;

/**
 * spring:
 *   amqp:
 *     deserialization:
 *       allowlist:
 *         patterns:
 *         - com.pro.baoyi.common.api.model.mq.*
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "spring.amqp")
public class SpringAmqpProperties {
    private Deserialization deserialization;

    @Data
    public static class Deserialization {
        private Allowlist allowlist;
    }
    @Data
    public static class Allowlist {
        private String[] patterns;
    }
}
